package no.ntnu.fp.gui.events;

import no.ntnu.fp.messages.impl.AddOrUpdateAppointmentMessage.UpdateType;
import no.ntnu.fp.model.Appointment;

@SuppressWarnings("serial")
public class AddOrUpdateAppointmentEvent extends GuiEvent {
	private final Appointment appointment;
	private final UpdateType type;
	
	public AddOrUpdateAppointmentEvent(Object source, Appointment appointment,
												UpdateType type) {
		super(source);
		this.appointment = appointment;
		this.type = type;
	}

	public Appointment getAppointment() {
		return appointment;
	}

	public UpdateType getType() {
		return type;
	}
}
